package com.sx.gongzhong.adapter;

import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.baidu.mapapi.search.core.PoiInfo;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sx.gongzhong.R;

import java.util.List;

/**地址选择
 * Created by admin on 2018/1/3.
 */

public class LocationAdapter extends BaseQuickAdapter<PoiInfo,BaseViewHolder> {

    private Context context;

    public LocationAdapter(Context context, @LayoutRes int layoutResId, @Nullable List<PoiInfo> data) {
        super(layoutResId, data);
        this.context=context;
    }

    @Override
    protected void convert(BaseViewHolder helper,  PoiInfo item) {
        helper.setText(R.id.tvName,item.name);
        helper.setText(R.id.tvAddress,item.address);
    }


}
